//
//  imagePickerController.m
//  tabBarText
//
//  Created by tsb1119 on 2018/1/4.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "imagePickerController.h"

@interface imagePickerController ()<UINavigationControllerDelegate, UIImagePickerControllerDelegate>

@end

@implementation imagePickerController

- (void)viewDidLoad {
    [super viewDidLoad]; 
    // 设置代理
    self.delegate = self;
}
#pragma mark - <拍照结果回调>
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(nullable NSDictionary<NSString *,id> *)editingInfo
{
    if (self.didSelected) {
        self.didSelected(image);
    }
    [self dismissViewControllerAnimated:YES completion:nil];
}

@end
